function check(x){
	if(x.value==""||x.value==" "||x.length>10){
		x.nextSibling.innerHTML="<font color='red' size='1'>*太长或为空</font>";
		x.focus();
		return false;
	}
}
function checked(form){
	var adName=form["adName"];
    var adPath=form["adPath"];
	if(test(adName)==false){
		alert("名称太长或为空");
		return false;
	}
	if(test1(adPath)==false){
		alert("链接为空或格式不对");
		return false;
	}
}
function test(input){
	var val=input.value;
	if(val==""||val==" "||input.length>10){
		return false;
	}
	return true;
}
function test1(input){
	var val=input.value;
	if(val.length>128||val.length<7||val==""||val==" "||val.substr(0,7)!="http://"){
		return false;
	}
	return true;
}